package com.project.service;

import com.project.entity.User;

import java.util.List;


public interface UserService {


    void add(User user) throws Exception;

    void remove(Integer id);

    void removeBatch(List idList);

    int modify(User user);

    User findById(Integer id);

    User findAllById(Integer id);

    User findByUserName(String username);

    List<User> findBatchByCondition(User user);

    User findByWorkId(String workid);

    /**
     * author:WheelChen
     * date:2017/5/7
     * function:修改密码时验证旧密码是否正确
     *
     * @param sessionUser
     * @param password
     * @return
     */
    Boolean validatePassword(User sessionUser, String password);
}
